package com.qqtech.qquan.homemaking.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.homemaking.model.HomemakingPubitem;
import com.qqtech.qquan.homemaking.model.HomemakingPubitemVo;
import com.qqtech.qquan.homemaking.model.HomemakingType;
import com.qqtech.qquan.homemaking.model.HomemakingTypeVo;

public interface HomemakingPubitemService extends BaseService<HomemakingPubitem> {
	
	/**
	 * 获取服务项目
	 * @param typeId 类别id，不能为空
	 * @param status 状态,当status==null时,返回所有状态的
	 * @return
	 */
	public List<HomemakingPubitemVo> findByTypeId(Integer typeId, Integer status);
	
	/**
	 * 后台查询列表
	 * @param query
	 * @param pageable
	 * @return
	 */
	public Page<HomemakingPubitemVo> queryPageListAdmin(HomemakingPubitem query, Pageable pageable);
}